DatabaseAdapter

interface DatabaseAdapter

Functions

Link copied to clipboard
Begins a transaction in EXCLUSIVE mode.
Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun compileStatement(sql: String): StatementWrapper
Compiles an SQL statement into a reusable pre-compiled statement object.
Link copied to clipboard
abstract fun delete(table: String): Int
Convenience method for deleting all rows in a table.
abstract fun delete(table: String, whereClause: String, whereArgs: Array<String>): Int
Convenience method for deleting rows in the database.
Link copied to clipboard
Link copied to clipboard
abstract fun endTransaction()
Link copied to clipboard
abstract fun execSQL(sql: String)
Link copied to clipboard
abstract fun executeInsert(sqLiteStatement: StatementWrapper): Long
Execute statement and return the ID of the row inserted due to this call.
Link copied to clipboard
abstract fun executeUpdateDelete(sqLiteStatement: StatementWrapper): Int
Execute this SQL statement, if the the number of rows affected by execution of this SQL statement is of any importance to the caller - for example, UPDATE / DELETE SQL statements.
Link copied to clipboard
abstract fun getDatabaseName(): String
Link copied to clipboard
abstract fun insert(table: String, nullColumnHack: String, values: ContentValues): Long
Link copied to clipboard
abstract fun isReady(): Boolean
Link copied to clipboard
abstract fun query(sql: String, columns: Array<String>): Cursor
abstract fun query(table: String, columns: Array<String>, selection: String, selectionArgs: Array<String>): Cursor
Link copied to clipboard
abstract fun rawQuery(sql: String, selectionArgs: Array<String>): Cursor
Runs the provided SQL and returns a Cursor over the result set.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun update(table: String, values: ContentValues, whereClause: String, whereArgs: Array<String>): Int